Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-modules-umd

Package Overview
Dependencies
Maintainers
4
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-modules-umd

This plugin transforms ES2015 modules to UMD

  • 7.25.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25M
increased by5.47%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-transform-modules-umd?

The @babel/plugin-transform-modules-umd package is a Babel plugin that transforms ES2015 modules to UMD (Universal Module Definition) format. This allows the modules to be used in various environments, such as in the browser, Node.js, or AMD (Asynchronous Module Definition) environments. The plugin provides flexibility in module usage across different platforms by wrapping the code in a UMD wrapper.

What are @babel/plugin-transform-modules-umd's main functionalities?

Transform ES2015 modules to UMD

This feature allows developers to write their JavaScript modules using the modern ES2015 module syntax and then transform them into UMD format. The transformed code can be executed in various environments without modification. The code sample shows a simple module exporting a string, transformed into UMD format.

"use strict";\n\nObject.defineProperty(exports, "__esModule", {\n  value: true\n});\nexports.default = void 0;\n\nvar _default = 'Hello World';\n\nexports.default = _default;\nmodule.exports = exports["default"];

Other packages similar to @babel/plugin-transform-modules-umd

Keywords

FAQs

Package last updated on 22 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc